//
//  IGiGalleryChangeNameApi.m
//  jingdongfang
//
//  Created by BOE on 2017/9/8.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "IGiGalleryChangeNameApi.h"

@interface IGiGalleryChangeNameApi()

@property (nonatomic, copy) NSString *macId;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *type;
    
@end

@implementation IGiGalleryChangeNameApi

- (id)initWithMacId:(NSString *)macId title:(NSString *)title type:(NSString *)type {
    self = [super init];
    if (self) {
        self.macId = macId;
        self.title = title;
        self.type = type;
    }
    return self;
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}
    
- (NSString *)requestUrl {
    return @"equ/updateEquTitle";
}
    
- (id)requestArgument {
    return @{
             @"macId": _macId,
             @"title": _title,
             @"type":_type,
             @"uId":[IGUser getUid]
             };
}
    
- (BOOL)isNeedHub {
    return NO;
}
   
@end

@implementation IGiGalleryChangeNameModel

+ (BOOL)propertyIsOptional:(NSString *)propertyName {
    if ([propertyName isEqualToString:@"msg"]) {
        return YES;
    }
    return NO;
}
    
@end

@implementation IGiGalleryChangeNameResp

@end
